#ifndef bailian_MapDoorInfoConf_h
#define bailian_MapDoorInfoConf_h

#include "../PreInclude.h"
#include "BaseConf.h"

struct CMapDoorInfoConf:public CBaseConf
{
    int  nDoorId;
    int  nTSid;
    int  nFSid;
    uint16  nX;
    uint16  nY;
    uint16  nZ;

	string cDoorName;
    
    void clone(CMapDoorInfoConf* vo){
        vo->nDoorId=nDoorId;
        vo->nTSid=nTSid;
        vo->nFSid=nFSid;
        vo->nX=nX;
        vo->nY=nY;
        vo->nZ=nZ;
    }
    
    virtual  void unpackXML(xml_node<> * pItem ,int nIdx = 0)
	{
        readString(pItem, "name", cDoorName);
        nConfId = nDoorId=readInt(pItem, "ser");
        nFSid=readInt(pItem, "sid");
        nTSid=readInt(pItem, "tsid");
        nX=readInt(pItem, "x");
        nY=readInt(pItem, "y");
        nZ=readInt(pItem, "z");
    
    }
    
};

#endif
